package ip.cynic.adapter.example2;

public class HdmiVGAAdapter implements VGATarget,HdmiTarget {

    private HdmiAdaptee hdmiAdaptee;

    private VGAAdaptee vgaAdaptee;

    public HdmiVGAAdapter(HdmiAdaptee hdmiAdaptee, VGAAdaptee vgaAdaptee) {
        this.hdmiAdaptee = hdmiAdaptee;
        this.vgaAdaptee = vgaAdaptee;
    }

    @Override
    public void vgaShow() {
        hdmiAdaptee.hdmiShow();
    }

    @Override
    public void hdmiShow() {
        vgaAdaptee.vgaShow();
    }
}
